package com.dt76.smallloanbackenduser.remote.ysy;

import com.dt76.smallloanbackenduser.hystrix.ysy.ManageHystrix;
import com.dt76.smallloanbackenduser.utils.Page;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(name = "smallloan-backend-service",fallback = ManageHystrix.class)
public interface ManageRemote {
    @RequestMapping("/ysy/manage")
    public Page qryPageConditionAll(@RequestParam("pageIndex") int pageIndex,
                                    @RequestParam("queryname") String queryname,
                                    @RequestParam("roleId") String roleId);
}
